package com.opennice.soukaoti.index;

import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

public class Constants {
	/**
	 * this is index dfc dataFile
	 */
	public static final String DEFAULT_DATAFILE_PATH = "classpath:soukaoti.properties";
	
	public static final String INDEXFSD_HOME = "/home/work/indexFile";
	
	public static final String DIC_HOME = "paoding.dic.home";
	public static final String DIC_HOME_DEFAULT = null;
	
	
	// -------------------------------------------------------------
	private static final Map/* <String, String> */map = new HashMap();

	static {
		map.put(DIC_HOME, DIC_HOME_DEFAULT);
	}
	public static String getProperty(Properties p, String name) {
		return p.getProperty(name, (String) map.get(name));
	}
}
